<template>
  <Swiper>
    <SwiperItem v-for="(item, index) in banners" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="" @load="swiperimgload" />
      </a>
    </SwiperItem>
  </Swiper>
</template>

<script>
import { Swiper, SwiperItem } from "@/components/common/swiper";

export default {
  name: "mainswiper",
  props: {
    banners: {
      type: Object,
    },
    recommend: {
      type: Object,
    },
  },
  components: {
    Swiper,
    SwiperItem,
  },
  methods: {
    swiperimgload() {
      this.$emit("swiperimgload");
    },
  },
};
</script>

<style>
</style>